package org.dromara.xhlj.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import org.dromara.starter.jpacomment.annotation.SailColumn;
import org.dromara.starter.jpacomment.annotation.SailIndex;
import org.dromara.starter.jpacomment.annotation.SailTable;
import org.dromara.starter.jpacomment.enums.IndexType;
/**
 * 展商产品反馈留言对象 xhlj_product_feedback
 *
 * @author yf
 * @date 2024-07-28
 */

@Data
@TableName("xhlj_product_feedback")
@Entity
@Table(name = "xhlj_product_feedback")
@SailTable(comment = "展商产品反馈留言表", indexs = {
    @SailIndex(name = "idx_user_id", type = IndexType.BTREE,
       columns = {"create_by"}
    ),    @SailIndex(name = "idx_product_id", type = IndexType.BTREE,
       columns = {"enterprise_product_id"}
    )}
)
public class XhljProductFeedback implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;
    public static final String TRANS_ID_TO_VO = "xhlj_productFeedback_vo";
    public static final String TRANS_ID_TO_VO_LIST = "xhlj_productFeedback_list";
    /**
     * 反馈留言ID
     */
    @TableId(value = "feedback_id", type = IdType.AUTO)
    @Id
    private Integer feedbackId;
    /**
     * 反馈留言内容
     */
    @Column(name = "feedback")
    @SailColumn(comment = "反馈留言内容",type = "varchar(200)", defaultValue = "NULL")
    private String feedback;
    /**
     * 产品ID
     */
    @SailColumn(comment = "产品ID",type = "int", defaultValue = "NULL")
    @Column(name = "enterprise_product_id")
    private Integer enterpriseProductId;
    /**
     * 创建人wx_user（留言用户）
     */
    @SailColumn(comment = "创建人wx_user（留言用户）",type = "int", defaultValue = "NULL")
    @Column(name = "create_by")
    private Integer createBy;
    /**
     * 评分（1至5星）
     */
    @Column(name = "rating")
    @SailColumn(comment = "评分（1至5星）",type = "int", defaultValue = "NULL")
    private Integer rating;
    /**
     * 留言创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @Column(name = "create_time")
    @SailColumn(comment = "留言创建时间",type = "timestamp", defaultValue = "CURRENT_TIMESTAMP")
    private Date createTime;
    /**
     * 删除标识符
     */
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    @Column(name = "del_flag")
    @SailColumn(comment = "删除标识符",type = "char(1)", defaultValue = "0")
    private String delFlag;
}
